<?php
namespace app\index\controller;
use think\Controller;
use think\Session;
use think\Db;
use app\index\controller\Base;
class Gallery extends Base{
	//热卖产品
    public function index(){
      $rmid=input('rmid');
      $nr=db('article')
      ->where('cateid',$rmid)
      ->select();
      // var_dump($nr);
      // exit;
      $this->assign('nr',$nr);
      return $this->fetch('gallery');
		
    }
    public function zs(){
      $tpid=input('tpid');
      $nr=db('article')
      ->where('id',$tpid)
      ->select();
      // var_dump($nr);
      // exit;
      $this->assign('nr',$nr);
      return $this->fetch('aa');
    }
	
}